//
//  AppDelegate.m
//  JSPatch
//
//  Created by yinli on 2018/1/12.
//  Copyright © 2018年 yinli. All rights reserved.
//

#import "AppDelegate.h"
#import "ViewController.h"

#import "AppDelegate+Bugly.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    self.window = [[UIWindow alloc] init];
    ViewController *vc = [[ViewController alloc] init];
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
    [self.window setRootViewController:nav];
    [self.window makeKeyAndVisible];
    
    [self configBuglySDK];
    [self configJSPatchRequest];
    
    return YES;
}

- (void)applicationDidBecomeActive:(UIApplication *)application {
    [self configJSPatchRequest];
}

@end
